package com.mxf.code.entity;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * account
 * @author 
 */
@Data
public class Account implements Serializable {
    private Integer id;

    private String name;

    private BigDecimal money = new BigDecimal(1);


    private static final long serialVersionUID = 1L;



    private final void getV(){
        System.out.println("final");
    }

    public void getV2(){
        //money = new BigDecimal("1");
        this.getV();
    }


    public void getU(final String str){
        System.out.println("getU");
    }

    public void ttt(){
        String ne = new String("f");
        for (int i = 0; i < 3; i++) {
            ne = new String("" + i);
            getU(ne);
        }
    }

    public static void main(String[] args) {
        /*String b = new String("b");
        String c = b;
        String a = new String(b);
        String e = "b";
        System.out.println(b.hashCode());
        System.out.println(c.hashCode());
        System.out.println(c.equals(b));
        System.out.println(c == b);
        System.out.println(c == a);
        System.out.println(c == e);
        System.out.println(a == e);
        Integer integer = Integer.valueOf(1);
        System.out.println(integer.equals(1));
        System.out.println(Integer.valueOf(8888) == 8888);*/
        /*ConcurrentHashMap<Object, Object> objectObjectConcurrentHashMap = new ConcurrentHashMap<>();
        objectObjectConcurrentHashMap.put(null,"");
        objectObjectConcurrentHashMap.put(null,"f");
        System.out.println(objectObjectConcurrentHashMap.get(null));*/

        /*String t = new String("1");
        boolean equals = t.equals(1);
        boolean equal = t.equals(new String("1"));
        System.out.println(new Integer("1").equals(t));
        System.out.println(equals);
        System.out.println(equal);*/


        System.out.println(new Account().hashCode());
        System.out.println(new Account().hashCode());
        System.out.println(new Account());
        System.out.println(new Account().hashCode());
    }
}